body{
    font: 400 10pt / 22px "微软雅黑", "宋体", Arial, Verdana;
    overflow: hidden;
}
ul, li, pre, div, h4, p{
    padding: 0;
    margin: 0;
}

input[type="button"], button, .button {
    background: -webkit-gradient(linear, 0 0, 0 100%, from(#fffffd), to(#f0f0f0));
    background-image: -moz-linear-gradient(top, #fffffd, #f0f0f0);
    border: 1px solid #d2d2d0;
    margin: 0 10px 0 0;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
}

input[type="button"]:hover, button:hover, .button:hover{
    border: 1px solid #99bdd7;
    box-shadow: 0 0 1px 1px #c2eeff;
}

.hidden{
    display: none;
}

#playerTools{
    position: absolute;
    bottom: 5px;
    left: 5px;
}

#playerTools .number b,#voteBox .number b{
    color: red;
}

#main{
    border: solid 1px #bdc7d9;
    border-radius: 3px;
    margin: 0 auto;
    background-image: -moz-linear-gradient(top, #fff, #eee);
    background-image: -webkit-linear-gradient(top, #fff, #eee);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    min-height: 200px;
    min-width: 500px;
}

#messageBox{
    border: solid 1px #bdc7d9;
    border-radius: 3px;
    padding: 5px;
    background: #fff;
    margin: 10px 10px 10px 10px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 255px;
    left: 0px;
}

#messageBox ul{
    height: 100px;
}

#messageBox li, #letterBox li{
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

#messageBox li p, #letterBox li p{
     word-wrap: break-word;
     white-space: pre-wrap;
}

#messageBox .nick, #playerBox .nick, #letterBox .nick{
    color: #111;
    margin: 0 5px 0 0;
}
#messageBox .self .nick, #playerBox .self .nick, #letterBox .self .nick{
    color: blue;
    font-weight: bold;
}

#messageBox .id, #playerBox .id, #letterBox .id{
    color: #e0e;
}

#messageBox .time{
    margin: 0 5px;
    font-style: italic;
    color: #777;
}

#messageList{
    position: absolute;
    left: 5px;
    top: 30px;
    right: 5px;
    bottom: 80px;
    border: solid 1px #bdc7d9;
    border-radius: 3px;
    margin: 5px 0;
    overflow: auto;
    padding: 5px;
}

#editorTools{
    position: absolute;
    bottom: 60px;
    right: 5px;
    left: 5px;
}

#editorTools button{
    top: 20px;
    position: absolute;
    right: 5px;
}

#editorTools label{
    margin: 5px 0;
}

#ctrlEnterLabel{
    position: absolute;
    top: 45px;
    right: 5px;
}

.tools button{
    float: right;
}

#playerBox{
    border: solid 1px #bdc7d9;
    border-radius: 3px;
    padding: 5px;
    margin: 10px 10px 10px 0;
    background: #fff;
    width: 230px;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
}

#playerList{
    margin: 5px 0 0;
    border: solid 1px #bdc7d9;
    border-radius: 3px;
    overflow: auto;

    position: absolute;
    left: 5px;
    top: 26px;
    right: 5px;
    bottom: 35px;
}

#playerBox li{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#playerBox .state{
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    border-radius: 3px;
    border: solid 1px #bdc7d9;
}

#playerBox .letter, #messageBox .letter, #letterBox .reply{
    cursor: pointer;
    font-size: 9pt;
    color: #fff;
    margin: 0 3px;
    border-radius: 2px;
    background-image: -moz-linear-gradient(bottom, #fff, #000);
    background-image: -webkit-linear-gradient(bottom, #fff, #000);
    visibility: hidden;
}

#playerBox li:hover .letter, #messageBox li:hover .letter, #letterBox li:hover .reply{
    visibility: visible;
}

#playerBox li.self:hover .letter, #messageBox li.self:hover .letter, #letterBox li.self:hover .reply{
    visibility: hidden;
}

#playerBox .online .state{
    background-image: -moz-linear-gradient(bottom, #fff, green);
    background-image: -webkit-linear-gradient(bottom, #fff, green);
}
#playerBox .offline .state{
    background-image: -moz-linear-gradient(bottom, #fff, #ddd);
    background-image: -webkit-linear-gradient(bottom, #fff, #ddd);
}
#playerBox .busy .state{
    background-image: -moz-linear-gradient(bottom, #fff, red);
    background-image: -webkit-linear-gradient(bottom, #fff, red);
}
#playerBox .offline .nick{
    font-style: italic;
}

#playerBox li:hover{
    background-image: -webkit-linear-gradient(top, #f2f7fd, #eff6ff);
    background-image: -moz-linear-gradient(top, #f2f7fd, #eff6ff);
}

#playerBox li.focus{
    background-image: -webkit-linear-gradient(top, #f2f7fd, #eff6ff);
    background-image: -moz-linear-gradient(top, #f2f7fd, #eff6ff);
}

#playerBox li a{
    text-decoration: none;
}

#editorBox{
    height: 52px;
    position: absolute;
    right: 135px;
    left: 5px;
    top: 20px;
}
#editor{
    height: 100%;
    resize: none;
    width: 100%;
}

h4{
    border-radius: 3px;
    padding: 0 5px;
    background-image: -moz-linear-gradient(left, rgb(204,232,255), #fff);
    background-image: -webkit-linear-gradient(left, rgb(204,232,255), #fff);
}

.masks{
    position: absolute;
    left: 0;
    top: 0;
    width:100%;
    height:100%;
    z-index: 10;
    background-color: rgba(127, 127, 127, .2);
}


.dialog {
    position: relative;
    top: 40px;
    width: 288px;
    height: 154px;
    z-index: 12;
    margin: 0 auto;
    border: solid 1px #bdc7d9;
    border-radius: 3px;
    background-image: -moz-linear-gradient(top, #fff, #eee);
    background-image: -webkit-linear-gradient(top, #fff, #eee);
}

.dialog .box{
    position: absolute;
    border-width: 24px 50px 17px 48px;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.dialog .head{
    position: absolute;
    top: 0;
    left: 1px;
    right: 1px;
    height: 25px;
    border-radius: 3px;
    background-image: -moz-linear-gradient(left, rgb(204,232,255), #fff);
    background-image: -webkit-linear-gradient(left, rgb(204,232,255), #fff);
}

.dialog .content{
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 40px;
    top: 25px;
    color: #666;
}

.dialog .foot{
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 1px;
    height: 38px;
    border-top: solid 1px #e7e7e7;
    text-align: right;
    background: #fdfdfd;
    border-radius: 0 0 3px 3px;
}

.dialog .head .title{
    text-shadow: 1px 1px 0 #fff;
    color: #000;
    font-weight: bold;
    line-height: 24px;
    margin-left: 10px;
}

.dialog .panel{
    margin: 10px;
}
.dialog .panel textarea{
    height: 68px;
    width: 263px;
    resize: none;
}
.dialog .close{
    display: inline-block;
    cursor: pointer;
    width: 10px;
    height: 10px;
    margin: 5px;
    border-radius: 3px;
    background-image: -moz-linear-gradient(top, rgb(204,232,255), #f00);
    background-image: -webkit-linear-gradient(top, rgb(204,232,255), #f00);
    border: solid 1px #bdc7d9;
    float: right;
}

#letterBox .dialog{
    width: 300px; 
    height: 350px;
}

#letterBox .dialog .content{
    border: 1px solid #BDC7D9;
    border-radius: 3px 3px 3px 3px;
    margin: 5px 0;
    overflow: auto;
    padding: 5px;
}

#letterBox li.old{
    background-color: #ddd;
}

#voteBox{
    left: 70px;
    position: absolute;
    top: 18px;
}

#voteBox li{
    overflow: hidden;
    float: left;
}

#voteBox li button{
    cursor: pointer;
    border-radius: 3px;
    background-image: -moz-linear-gradient(top, rgb(204,232,255), #0f0);
    background-image: -webkit-linear-gradient(top, rgb(204,232,255), #0f0);
    border: solid 1px #bdc7d9;
    margin-top: 1px;
    padding: 0 3px;
}

#voteBox li.voted button{
    cursor: default;
    background-image: -moz-linear-gradient(top, rgb(204,232,255), #ddd);
    background-image: -webkit-linear-gradient(top, rgb(204,232,255), #ddd);
}

#main span.weibo{
    background: url(http://img.t.sinajs.cn/t4/style/images/common/ico_expand.png) no-repeat 0 -40px;
    display: inline-block;
    width: 16px;
    height: 16px;
}